package practise1;

public class Cat {
    private String name;
    private int legnum;

    public Cat(String name,int legnum){
        this.name=name;
        this.legnum=legnum;
    }
    public String getName() {
        return name;
    }


    public int getLegnum() {
        return legnum;
    }

    public void shout(){
        System.out.println("喵喵喵......");
    }
}
